package com.wmx.designMode.proxy;

public class ProxyTest {
    public static void main(String[] args) {
        //目标对象
         ITarget target = new Target();
        System.out.println(target.getClass());

        ITarget proxy = (ITarget) new ProxyFactoty(target).getProxyInstance();

        proxy.executeMethod("eumengxin");
    }
}
